<?php
include ("../inc/config.inc.php");
include ("../inc/mysql.inc.php");
include ("inc/tool.inc.php");
// 判断$_get传值是否正常
$url = "son_module.php";
if (!isset($_GET['id']) || !is_numeric($_GET['id'])) {
    skip($url,'error','无法找到正确的子版块id值');
}
$link = connect();
$query = "delete from sfk_son_module where id = {$_GET['id']}";
execute($link,$query);
if ($link->affected_rows != 0) {
    skip($url,'ok','删除子版块成功');
} else {
    skip($url, 'error', '删除子版块失败');
}

